<template>
	<view>
		<u-button type="primary" shape="circle" text="退出登录" @click="logOut"></u-button>
	</view>
	
</template>

<script>
	import {mapState} from 'vuex';
	export default{
		data(){
			return{
				
			}
		},
		computed:mapState(["username",'userToken']),
		methods:{
			logOut(){
				uni.redirectTo({
					url:`/pages/Login/index`
				})
				uni.setStorageSync('uni_id_token','')
				uni.setStorageSync('username','')
				
			}
		}
	}
</script>

<style>
</style>